/* 全局样式入口文件 */
@import './variables.scss';
@import './base.scss';
@import './element-ui.scss';
@import './transition.scss';

/* 自定义全局样式 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-primary);
  font-size: 14px;
  color: var(--text-color-primary);
  background-color: var(--bg-color);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* 清除浮动 */
.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

/* flex 布局工具类 */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 超出省略号 */
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 鼠标手型 */
.pointer {
  cursor: pointer;
}

/* 主要内容区域 */
.main-container {
  padding: 20px;
  height: calc(100vh - 50px - 60px); /* 减去头部和底部的高度 */
  overflow-y: auto;
}

/* 卡片样式 */
.app-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 表格工具栏样式 */
.table-toolbar {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 表单样式 */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}